import request from '@/utils/request'

// 查询判断题列表
export function listJudgement(query) {
  return request({
    url: '/exam/judgement/list',
    method: 'get',
    params: query
  })
}

// 查询判断题详细
export function getJudgement(judgementId) {
  return request({
    url: '/exam/judgement/' + judgementId,
    method: 'get'
  })
}

// 新增判断题
export function addJudgement(data) {
  return request({
    url: '/exam/judgement',
    method: 'post',
    data: data
  })
}

// 修改判断题
export function updateJudgement(data) {
  return request({
    url: '/exam/judgement',
    method: 'put',
    data: data
  })
}

// 删除判断题
export function delJudgement(judgementId) {
  return request({
    url: '/exam/judgement/' + judgementId,
    method: 'delete'
  })
}

// 导出判断题
export function exportJudgement(query) {
  return request({
    url: '/exam/judgement/export',
    method: 'get',
    params: query
  })
}